'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);

  router.get('/api/md/:dir/:name', controller.note.index);
  router.get('/api/note/catalogue', controller.note.catalogue);
  router.post('/api/speed', controller.speed.run);
  router.get('/speed', controller.speed.index);
};
